import request from '@/utils/request'

// 查询运单详情列表
export function listWaybill(query) {
  return request({
    url: '/business/waybill/list',
    method: 'get',
    params: query
  })
}

// 查询运单详情详细
export function getWaybill(waybillId) {
  return request({
    url: '/business/waybill/' + waybillId,
    method: 'get'
  })
}

// 新增运单详情
export function addWaybill(data) {
  return request({
    url: '/business/waybill',
    method: 'post',
    data: data
  })
}

// 修改运单详情
export function updateWaybill(data) {
  return request({
    url: '/business/waybill',
    method: 'put',
    data: data
  })
}

// 删除运单详情
export function delWaybill(waybillId) {
  return request({
    url: '/business/waybill/' + waybillId,
    method: 'delete'
  })
}
